package com.medical.admin.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.admin.sys.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;


/*
 * @Date : 2024/4/26 19:02
 * @Created by Lang
 * @ProjectName : medical-appointment-registration
 */
    
public interface PermissionMapper extends BaseMapper<Permission> {
    Integer batchInsert(@Param("roleId") Integer marRoleId, @Param("permissionIds") ArrayList<Integer> integers);

    Integer batchUpdate(@Param("roleId") Integer marRoleId, @Param("permissionIds") ArrayList<Integer> integers);

    Integer deletePermissions(@Param("roleId") Integer marRoleId);
}